import type { BasicFetchResult, BasicHttpSendData, BasicPageParams } from '@/api/model/baseModel';

/**
 * @description: Request list interface parameters
 */
export type DemoParams = BasicPageParams;

export interface SummaryListItem {
  id: string;
  props1: string;
}

export interface UpdateLoginDto {
  id: string;
  props1: string;
}
export type LoginResultModel = BasicFetchResult<any>;

export interface UpdateRegisterDto {
  nickName: string;
  phonenumber: string;
  idNo: string;
  password: string;
  [key: string]: any;
}

interface UserInfo {
  id: string;
  name: string;
  username: string;
  password: string;
  avatar: string;
  introduction: string;
  email: string;
  phone: string;
  roles: string[];
  permissions: string[];
  [key: string]: any;
}

export type UserInfoResultModel = BasicHttpSendData<UserInfo>;

/**
 * @description: Request list return value
 */
export type DemoSummaryListResultModel = BasicFetchResult<SummaryListItem>;
